#!/usr/bin/python

from pylab import *
import sys
import os
# appends project's (maloqp) parent directory to python search path
sys.path.append(os.getcwd().rsplit(os.path.sep, 2)[0])

import maloqp.src.sample as sample

a = 0
x = []
y = []

while (a >= -10):
    args = ['-t', str(a), '-m', '../data/real', '../data/7mer_population']
    x.append(a)
    y.append(len(sample.main(args)))

    a -= 0.5

print x
print y

plot(x, y, linewidth=2)
xlabel('energy')
ylabel('population size')
title('Mnt_hs complete')
axis([-10, 0, 1, 2500])
grid(True)
savefig('complete_population.png')
show()
